/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  color: #333;
}

/* 主容器 */
.container {
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  border-radius: 12px;
}

/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: center; /* 按钮整体居中 */
  align-items: center;
  gap: 15px; /* 按钮之间间隔15px */
  padding: 15px 0;
  background-color: #f7f9fc;
  color:#555;
  border-radius: 12px 12px 0 0;
}

.nav-button {
  padding: 8px 16px;
  font-size: 16px;
  color: #555;
  background-color:#eaedfc;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
  border: none; /* 移除边框 */
  outline: none; /* 去掉选中时的默认样式 */
}

.nav-button:hover {
  background-color: #9ab2f8;
  color: #ffffff;
}

.icon {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 16px;
  line-height: 1.2;
  color:#555;
  background-color: #eaedfc;
}

/* 主内容样式 */
.main-content {
  text-align: center;
  padding: 40px 20px;
}

.main-content h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.main-content p {
  font-size: 16px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}


/*————————————————————————————————————————————————————————————————————————————*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding-top: 20px;
}

.navbar {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    padding: 10px;
}

.nav-button {
    color: white;
    background-color: #444;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #555;
}

.filters {
    margin-bottom: 20px;
}

.filters label {
    margin-right: 10px;
}

.charts {
    margin-bottom: 20px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.data-table th {
    background-color: #f4f4f4;
}

/*隐藏*/
.hidden {
    display: none;
}

/*个人中心样式*/

.container {
    width: 100%;
    height: 100vh;  /* 设置容器的高度为视口高度 */
    overflow: auto;  /* 隐藏任何超出的内容 */
}
.center{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*账号安全*/
.account{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.account>h1{
    margin-top: 30px;
    margin-bottom: 80px;
    font-size: 2.5em;
    color: #333;
}
.account>.form-container {
    width: 100%;
    max-width: 650px; /* 限制最大宽度 */
    display: flex;
    flex-direction: column;
    gap: 35px; /* 表单项之间的间距 */
    align-items: center; /* 水平居中表单项 */
}

h1 {
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 2.5em;
    color: #333;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: auto;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-container {
    width: 100%;
    max-width: 650px; /* 限制最大宽度 */
    display: flex;
    flex-direction: column;
    gap: 25px; /* 表单项之间的间距 */
    align-items: center; /* 水平居中表单项 */
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 标签和输入框两端对齐 */
    width: 80%; /* 占满父容器宽度 */
}

.form-group label {
    width:30%; /* 标签宽度 */
    height: 30px;
    font-size: 20px;
    color: #1d1c1c;
    text-align: center;
}

.form-container input {
    width: 450px; /* 输入框宽度相对于表单项 */
    height: 50px;
    padding: 8px 5px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

/*保存按钮*/
#save{
    width: 100px;
    height: 50px;
    font-size: 18px;
    color:#ffffff;
    border: none;
    border-radius: 10px;
    background-color: #807f7f;
    align-content: center;
    cursor: pointer;
}

#save:hover{
    background-color: #c6c4c4;
    color: #232323;
}

/*提交按钮*/
#submit{
    width: 100px;
    height: 50px;
    font-size: 18px;
    color:#ffffff;
    border: none;
    border-radius: 10px;
    background-color: #807f7f;
    align-content: center;
    cursor: pointer;
}

#submit:hover{
    background-color: #c6c4c4;
    color: #232323;
}
